package com.leejxx.health.service;

import com.leejxx.health.entity.PageResult;
import com.leejxx.health.entity.QueryPageBean;
import com.leejxx.health.pojo.Role;

import java.util.List;

/**
 * @Author LeeJx
 * @ClassName RoleService
 * @Description TODO
 * @date 2021/1/11 19:53
 * @Version 1.0
 */
public interface RoleService {
    PageResult findByPage(QueryPageBean queryPageBean);

    Role findPermissionsAndMenus();

    void addRole(Role role, List<Integer> permissionIds, List<Integer> menuIds);

    Role findRoleById(Integer roleId);

    void edit(Role role, List<Integer> permissionIds, List<Integer> menuIds);

    void deleteById(Integer roleId);
}
